< previous page page_621 next page >

Page 621
something happens in the application, or you can use the Speak method to inform users of something. Table B.2 is a short list of what types of animations you have available to use.
TABLE B.2. AVAILABLE GENIE CHARACTER ANIMATIONS.
Animation NameDescription
AnnounceRaises hand
ConfusedScratches head
CongratulateThumbs-up gesture
DeclineRaises hands and shakes head
ProcessingSpins (looping animation)
ReadingReads (looping animation)
SuggestDisplays a light bulb
ThinkLooks up with hand on chin
UncertainRaises eyebrow with hand on chin
WritingWrites (looping animation)

For each animation is a corresponding animation with the word Return attached to the original name (for example, AnnounceReturn). Remember that with the looping animations, you must use the Stop method before playing any other animation.
Note
Each character has a Word document that lists all the available animations. You can find this document on the Microsoft Agent's Web site.

The animation name is passed to the Play method to tell the character which animation to play. To see how this works, add the following code line to the command button's click event:
MyAgent.Play Congratulate
Caution
If you're playing a looping animation, you must use the
Stop method to clear it before other animations can be played.

 
< previous page page_621 next page >

If you like this book, buy it!